import request from '@/utils/request'

export interface RiskStats {
  totalWarnings: number
  monthlyWarnings: number
  monthlyGrowth: number
  riskLevels: {
    level: string
    count: number
  }[]
  warningTrends: {
    date: string
    count: number
  }[]
}

export function getRiskStats(params?: { timeRange?: string }): Promise<RiskStats> {
  return request({
    url: '/api/mental-health/risk/stats',
    method: 'get',
    params
  })
} 